package io.github.xxyopen.novel.dto.resp;

import io.github.xxyopen.novel.core.enums.BookNodeTypeEnums;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 书籍树信息
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class BookInfoTreeRespDto implements Serializable {

    @Serial
    private static final long serialVersionUID = -7664281058439815468L;

    /**
     * 类别ID
     */
    @Schema(description = "类别ID")
    private String id;

    /**
     * 类别名
     */
    @Schema(description = "类别名")
    private String name;

    @Schema(description = "父节点Id")
    private String  parentId;


    /**
     * 排序
     */
    private Integer sort;


    @Schema(description = "父节点Id")
    private BookNodeTypeEnums nodeType;

    /**
     * 书名
     */
    @Schema(description = "书名列表")
    private List<BookInfoTreeRespDto> dataList;

}
